<template>
    <div class="head">
        <el-row>
            <el-col :span="10">
                <div class="img">
                    <img src="../../common/images/logo.jpg">
                </div>
            </el-col>
            <el-col :span="14">
                <div class="number">
                    TEL:001-832-805-9900
                </div>
                <div class="nav">
                    <el-menu :default-active="activeIndex"
                             class="el-menu-demo"
                             mode="horizontal"
                             router>
                        <el-menu-item index="/home">首页</el-menu-item>
                        <el-menu-item index="/about">关于我们</el-menu-item>
                        <el-submenu index="process">
                            <template slot="title">服务流程</template>
                            <el-menu-item index="/process/1/">海外医疗咨询与服务</el-menu-item>
                            <el-menu-item index="/process/2/">海外专家远程会诊服务</el-menu-item>
                            <el-menu-item index="/process/3/">其他服务</el-menu-item>
                        </el-submenu>
                        <el-menu-item index="/hospitals">权威医院</el-menu-item>
                        <el-menu-item index="/honours">荣誉资质</el-menu-item>
                        <el-submenu index="">
                            <template slot="title">新闻动态</template>
                            <el-menu-item index="/news/1/">公司新闻</el-menu-item>
                            <el-menu-item index="/news/2/">医学前沿</el-menu-item>
                        </el-submenu>
                        <el-menu-item index="/contact">联系我们</el-menu-item>
                    </el-menu>
                </div>
            </el-col>
        </el-row>
    
    </div>
</template>

<script>
export default {
    data() {
        return {
            activeIndex: '/home',
        }
    },
    watch: {
        "$route"(to, from) {
            this.activeIndex = to.path;
        }
    },
    methods: {
    }
}
</script>

<style lang="less">
.head {
    width: 1336px;
    margin: 0 auto;
    .img {
        padding: 20px;
        width: 160px;
        height: 65px;
        img {
            width: 160px;
            height: 65px;
        }
    }
    .number {
        margin-top: 30px;
        color: #1169b8;
        font-size: 18px;
        font-weight: bold;
        text-align: right;
        margin-right: 75px;
    }
    .nav {
        text-align: right !important;
        ul {
            background-color: #fff;
            .el-menu-item {
                padding: 0 25px;
            }
        }
    }
}
</style>